package cn.wolfcode.edu.query;

import cn.wolfcode.edu.util.StringUtil;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
@ToString
public class SalaryQueryObject extends QueryObject {
    private String keyword;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
    private String order = "month";
    public String getKeyword() {
        return StringUtil.emptyStringTONull(keyword);
    }
}
